import {getLogger,fileutil,common} from '../index.js'
import test from 'ava'

test('getLogger default', async t => {
  let logger = getLogger('test');
  logger.info('info console')
  logger.debug('debug console');
  logger.warn('warn console');
  logger.error('error console');
  t.pass('success');
  await common.sleep(3000);
  fileutil.deldir('./logs');
});